package com.tiancheng.trade.settlement.vo.settlement.merchantcontract;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class GetMerchantContractVO {

    @JsonProperty("id")
    private Long id;                          //主键

    @JsonProperty("contract_code")
    private String contractCode;           // 合同编码

    @JsonProperty("organization_name")
    private String organizationName;               // 商户编码/商户ID

    @JsonProperty("merchant_name")
    private String merchantName;               // 商户名称

    @JsonProperty("merchant_code")
    private String merchantCode;               // 商户编号

    @JsonProperty("is_delete")
    private Integer isDelete;               // 删除标识

    public String getContractCode() {
        if (StringUtils.isNotEmpty(contractCode)) {
            contractCode = contractCode.trim();
        }
        return contractCode;
    }

    public String getOrganizationName() {
        if (StringUtils.isNotEmpty(organizationName)) {
            organizationName = organizationName.trim();
        }
        return organizationName;
    }

    public String getMerchantName() {
        if (StringUtils.isNotEmpty(merchantName)) {
            merchantName = merchantName.trim();
        }
        return merchantName;
    }

}
